package com.example.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloCtrl {
    @ResponseBody
    @RequestMapping("hello")
    public String hello(){
        return "樊振东世界第一可爱~";
    }
    @GetMapping("/first")
    public String tofirst(){
        return "first";
    }

    @RequestMapping("/first")
    public String toFist(){
        return "first.";
    }
}
